//
//  CWOrderInfo.m
//  paytong
//
//  Created by 王 友宏 on 11-1-3.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import "CWOrderInfo.h"


@implementation CWOrderInfo

-(void)initWithOne								//单程票初始化
{
	isSingle = YES;
	orderInfo = [[NSMutableArray alloc] initWithObjects:@"BK0000",@"",@"",@"",@"",@"",@"",@"",@"",@"",@"",@"",@"",@"",@"",@"",@"",@"",@"",
																@"",@"",@"",@"",@"",@"",@"",@"",@"",@"",@"",@"",@"",@"",@"",@"",nil];
}

-(void)initWithTow								//往返票初始化
{
	isSingle = NO;
	orderInfo = [[NSMutableArray alloc] initWithObjects:@"BK0000",@"",@"",@"",@"",@"",@"",@"",@"",@"",@"",@"",@"",@"",@"",@"",@"",
																@"",@"",@"",@"",@"",@"",@"",@"",@"",@"",@"",@"",@"",@"",@"",@"",
																@"",@"",@"",@"",@"",@"",@"",@"",@"",@"",@"",@"",@"",@"",@"",nil];
}

-(NSString *)getSendString
{
	return [orderInfo componentsJoinedByString:@"|"];
}

-(void)setTicketsum:(NSString *)strValue		//订票数量
{
	[orderInfo replaceObjectAtIndex:1 withObject:strValue];
}

-(void)setLinkman:(NSString *)strValue			//联系人姓名
{
	[orderInfo replaceObjectAtIndex:2 withObject:strValue];
}

-(void)setLinkmobel:(NSString *)strValue		//联系人手机号
{
	[orderInfo replaceObjectAtIndex:3 withObject:strValue];
}

-(void)setLinktelephone:(NSString *)strValue	//联系人固定电话
{
	[orderInfo replaceObjectAtIndex:4 withObject:strValue];
}

-(void)setLinkemail:(NSString *)strValue		//联系人电子邮件地址
{
	[orderInfo replaceObjectAtIndex:5 withObject:strValue];
}

-(void)setLinkaddress:(NSString *)strValue		//联系人地址
{
	[orderInfo replaceObjectAtIndex:6 withObject:strValue];
}

-(void)setRemark:(NSString *)strValue			//备注
{
	[orderInfo replaceObjectAtIndex:7 withObject:strValue];
}

-(void)setTripdoc:(NSString *)strValue			//是否需要行程单：0需要 1不需要
{
	[orderInfo replaceObjectAtIndex:8 withObject:strValue];
}

-(void)setRecipient:(NSString *)strValue		//行程单收件人姓名
{
	[orderInfo replaceObjectAtIndex:9 withObject:strValue];
}

-(void)setPostcode:(NSString *)strValue			//行程单收件人邮编
{
	[orderInfo replaceObjectAtIndex:10 withObject:strValue];
}

-(void)setAddress:(NSString *)strValue			//行程单收件人地址
{
	[orderInfo replaceObjectAtIndex:11 withObject:strValue];
}

-(void)setDate:(NSString *)strValue				//航班日期
{
	[orderInfo replaceObjectAtIndex:12 withObject:strValue];
}

-(void)setOrg:(NSString *)strValue				//起飞城市
{
	[orderInfo replaceObjectAtIndex:13 withObject:strValue];
}

-(void)setDst:(NSString *)strValue				//到达城市
{
	[orderInfo replaceObjectAtIndex:14 withObject:strValue];
}

-(void)setFltno:(NSString *)strValue			//航班号
{
	[orderInfo replaceObjectAtIndex:15 withObject:strValue];
}

-(void)setDeptime:(NSString *)strValue			//起飞时间：HH：MM
{
	[orderInfo replaceObjectAtIndex:16 withObject:strValue];
}

-(void)setArrtime:(NSString *)strValue			//到达时间：HH：MM
{
	[orderInfo replaceObjectAtIndex:17 withObject:strValue];
}

-(void)setPlanesty:(NSString *)strValue			//机型
{
	[orderInfo replaceObjectAtIndex:18 withObject:strValue];
}

-(void)setTax:(NSString *)strValue				//机场建设费
{
	[orderInfo replaceObjectAtIndex:19 withObject:strValue];
}

-(void)setFuel:(NSString *)strValue				//燃油费
{
	[orderInfo replaceObjectAtIndex:20 withObject:strValue];
}

-(void)setPrice:(NSString *)strValue			//票面价格
{
	[orderInfo replaceObjectAtIndex:21 withObject:strValue];
}

-(void)setSellprice:(NSString *)strValue		//销售价格
{
	[orderInfo replaceObjectAtIndex:22 withObject:strValue];
}

-(void)setYcabinprice:(NSString *)strValue		//Y舱全价
{
	[orderInfo replaceObjectAtIndex:23 withObject:strValue];
}

-(void)setFlightspace:(NSString *)strValue		//舱位代码
{
	[orderInfo replaceObjectAtIndex:24 withObject:strValue];
}

-(void)setfDate:(NSString *)strValue			//回程日期
{
	[orderInfo replaceObjectAtIndex:25 withObject:strValue];
}

-(void)setfOrg:(NSString *)strValue				//回程起飞城市
{
	[orderInfo replaceObjectAtIndex:26 withObject:strValue];
}

-(void)setfDst:(NSString *)strValue				//回程到达城市
{
	[orderInfo replaceObjectAtIndex:27 withObject:strValue];
}

-(void)setfFltno:(NSString *)strValue			//回程航班号
{
	[orderInfo replaceObjectAtIndex:28 withObject:strValue];
}

-(void)setfDeptime:(NSString *)strValue			//回程起飞时间
{
	[orderInfo replaceObjectAtIndex:29 withObject:strValue];
}

-(void)setfArrtime:(NSString *)strValue			//回程到达时间
{
	[orderInfo replaceObjectAtIndex:30 withObject:strValue];
}

-(void)setfPlanesty:(NSString *)strValue		//回程机型
{
	[orderInfo replaceObjectAtIndex:31 withObject:strValue];
}

-(void)setfTax:(NSString *)strValue				//回程机场建设费
{
	[orderInfo replaceObjectAtIndex:32 withObject:strValue];
}

-(void)setfFuel:(NSString *)strValue			//回程燃油附加费
{
	[orderInfo replaceObjectAtIndex:33 withObject:strValue];
}

-(void)setfPrice:(NSString *)strValue			//回程票面价格
{
	[orderInfo replaceObjectAtIndex:34 withObject:strValue];
}

-(void)setfSellprice:(NSString *)strValue		//回程销售价格
{
	[orderInfo replaceObjectAtIndex:35 withObject:strValue];
}

-(void)setfYcabinprice:(NSString *)strValue		//回程Y舱全价
{
	[orderInfo replaceObjectAtIndex:36 withObject:strValue];
}

-(void)setfFlightspace:(NSString *)strValue		//回程舱位代码
{
	[orderInfo replaceObjectAtIndex:37 withObject:strValue];
}

-(void)setName:(NSString *)strValue				//乘客姓名
{
	if(isSingle)
		[orderInfo replaceObjectAtIndex:25 withObject:strValue];
	else
		[orderInfo replaceObjectAtIndex:38 withObject:strValue];
}

-(void)setCardtype:(NSString *)strValue			//证件类型
{
	if(isSingle)
		[orderInfo replaceObjectAtIndex:26 withObject:strValue];
	else
		[orderInfo replaceObjectAtIndex:39 withObject:strValue];
}

-(void)setCardno:(NSString *)strValue			//证件号
{
	if(isSingle)
		[orderInfo replaceObjectAtIndex:27 withObject:strValue];
	else
		[orderInfo replaceObjectAtIndex:40 withObject:strValue];
}

-(void)setCountry:(NSString *)strValue			//国家代码：中国23
{
	if(isSingle)
		[orderInfo replaceObjectAtIndex:28 withObject:strValue];
	else
		[orderInfo replaceObjectAtIndex:41 withObject:strValue];
}

-(void)setSecure:(NSString *)strValue			//保险
{
	if(isSingle)
		[orderInfo replaceObjectAtIndex:29 withObject:strValue];
	else
		[orderInfo replaceObjectAtIndex:42 withObject:strValue];
}

-(void)setSecureMoney:(NSString *)strValue		//保险金额
{
	if(isSingle)
		[orderInfo replaceObjectAtIndex:30 withObject:strValue];
	else
		[orderInfo replaceObjectAtIndex:43 withObject:strValue];
}

-(void)setPassengertype:(NSString *)strValue	//乘客类型：0成人 1儿童 2婴儿（现在只支持成人）
{
	if(isSingle)
		[orderInfo replaceObjectAtIndex:31 withObject:strValue];
	else
		[orderInfo replaceObjectAtIndex:44 withObject:strValue];
}

-(void)setMemberno:(NSString *)strValue			//常旅客卡号：没有为0
{
	if(isSingle)
		[orderInfo replaceObjectAtIndex:32 withObject:strValue];
	else
		[orderInfo replaceObjectAtIndex:45 withObject:strValue];
}

-(void)setBirthday:(NSString *)strValue			//出生日期（证件类型不是身份证时避填）
{
	if(isSingle)
		[orderInfo replaceObjectAtIndex:33 withObject:strValue];
	else
		[orderInfo replaceObjectAtIndex:46 withObject:strValue];
}

-(void)setSex:(NSString *)strValue				//性别：1男 2女
{
	if(isSingle)
		[orderInfo replaceObjectAtIndex:34 withObject:strValue];
	else
		[orderInfo replaceObjectAtIndex:47 withObject:strValue];
}

-(void)dealloc
{
	[orderInfo release];
	[super dealloc];
}

@end
